!!!
%html{lang: I18n.locale}
  %head
    %title= metadata[:title]
    %meta{charset: 'utf-8'}
    %meta{name: "viewport", content: "width=device-width, initial-scale=1.0" }
    %meta{:content => metadata[:title], :property => "og:title"}
    %meta{:content => metadata[:description], :name => "description", :property => "og:description"}
    - metadata.fetch(:image_urls, []).each do |image_url|
      %meta{:content => image_url, :property => "og:image"}
    %meta{:content => AppConfig.theme[:site_name], :property => "og:site_name"}
    %meta{:content => "website", :property => "og:type"}
    %link{rel: "canonical", href: url_for(:only_path => false, :protocol => 'https')}
    %link{rel: "icon", href: AppConfig.theme[:icon_src]}
    = stylesheet_link_tag 'vtfy/themeauto'
    = raw vue_css_includes
    - if !params[:export] && !browser.bot?
      = raw vue_js_includes

  %body
    #app(data-v-app)
      %div.v-theme--auto.v-application.v-layout.v-layout--full-height.v-locale--is-ltr.app-is-booted
        %div.v-application__wrap
          %header(class="px-4 v-toolbar v-toolbar--density-default bg-background v-theme--dark v-locale--is-ltr v-app-bar lmo-no-print")
            .v-toolbar__content.d-flex.justify-space-between{:style => "height: 56px;"}
              .v-toolbar__title= AppConfig.theme[:site_name]
              .spacer
              .v-toolbar__items
              %a.navbar__sign-in.v-btn.v-btn--flat.v-btn--text.theme--auto.v-size--default{:href => "?sign_in=1"}= t(:'navbar.sign_in')
          = yield
          %footer.v-footer.theme--auto.text-body-2
            .v-layout.justify-space-around
              .powered-by.caption
                %a{:href => "https://www.loomio.com?utm_source=#{ENV['CANONICAL_HOST']}&utm_campaign=appfooter}", :target => "_blank"}= t(:'powered_by.powered_by_loomio')
                %span ·
                %a{:href => AppConfig.theme[:privacy_url], :target => "_blank"}= t(:'powered_by.privacy_policy')
                %span ·
                %a{:href => AppConfig.theme[:terms_url], :target => "_blank"}= t(:'powered_by.terms_of_service')
                %span ·
                %a{:href => AppConfig.theme[:help_url], :target => "_blank"}= t(:'common.help')
